package com.green.service.manage.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.green.common.page.Pagination;
import com.green.dao.manage.PositionDao;
import com.green.model.manage.Position;
import com.green.service.common.impl.BaseServiceImpl;
import com.green.service.manage.PositionService;



/**
 * 人员
 * 
 */
@Repository("positionService")
public class PositionServiceImpl extends BaseServiceImpl implements PositionService {
	@Autowired
	private PositionDao positionDao;
	@Override
	public int insertPosition(Position ct) {
		return positionDao.insertPosition(ct);
	}

	@Override
	public int updatePosition(Position ct) {
		return positionDao.updatePosition(ct);
	}

	@Override
	public int deletePosition(Map<String, Object> param) {
		return positionDao.deletePosition(param);
	}

	@Override
	public Position getPositionById(String id) {
		return this.positionDao.getPositionById(id);
	}

	@Override
	public List<Position> getPositionList(Map<String, Object> param) {
		return this.positionDao.getPositionList(param);
	}

	@Override
	public Pagination<Position> getPositionPagination(Pagination<Position> pag,
			Map<String, Object> param) {
		return this.positionDao.getPositionPagination(pag, param);
	}
	
	
}
